﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;
using System.Windows.Forms;

namespace Spider
{
    public class RegistryToRun
    {
        public static void Regist()
        {
            RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
            if (rkApp.GetValue("Spider") == null)
            {
                rkApp.SetValue("Spider", Application.ExecutablePath.ToString());
            }
        }
    }
}
